@extends('Admin.layouts.common')

@section('content')
    <div class="container" style="padding-top:20px;">

        @if(count($errors))
            <div class="alert alert-danger">
                <ul>
                    @foreach($errors->all() as $err)
                        <li>{{ $err }}</li>
                    @endforeach
                </ul>
            </div>
        @endif

        <form method="post">
            {{ csrf_field() }}
            
            
            <div class="form-group required">
                <label class="control-label">消息标题</label>
                <input name="title" type="text" class="form-control" value="">
            </div>
            <div class="form-group required">
                <label class="control-label">消息内容</label>
                <textarea class="form-control" name="content" ></textarea>
            </div>

           
            <div class="form-group required">
                <label class="control-label">跳转协议</label>
                <select name="click_id" class="form-control">
                	@foreach($click as $id=>$c)
                    <option value="{{ $id }}">{{ $c['action'] }}</option>
                    @endforeach
                </select>
            </div>             
            <div class="form-group">
                <button class="btn btn-primary btn-block" type="submit">添加</button>
            </div>
        </form>
    </div>
@endsection